use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use sqlx::FromRow;

#[derive(Debug, Clone, Default, Serialize, Deserialize, FromRow)]
pub struct SysMenu {
    pub id: Option<i64>,
    pub name: Option<String>,
    pub parent_id: Option<i64>,
    pub order_num: Option<i64>,
    pub url: Option<String>,
    pub target: Option<String>,
    pub menu_type: Option<char>,
    pub visible: Option<char>,
    pub is_refresh: Option<char>,
    pub icon: Option<String>,
    pub create_by: Option<String>,
    pub create_time: Option<NaiveDateTime>,
    pub update_by: Option<String>,
    pub update_time: Option<NaiveDateTime>,
    pub remark: Option<String>,
}